#include "../app/app_mqtt.h"
#include <unistd.h>

int callback(char *data, int len)
{
    log_debug("receive data: %.*s", len, data);
    return 0;
}

int main(void)
{
    app_mqtt_resigterRecvCallBack(callback);

    app_mqtt_init();

    app_mqtt_send("zzzzz", 5);
    sleep(20);
    app_mqtt_close();
    return 0;
}